package com.mogist.hqc.entitys.response;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.io.Serializable;

/**
 * 作用：首页产品
 * 作者：赵小白 email:vvtale@gmail.com  
 * 修改人：
 * 修改时间：
 * 修改备注：
 */
public class MainVo implements Serializable, MultiItemEntity
{
	// 0:线路 1:微社区 2:产品

	public MainVo(MainRouteVo route)
	{
		this.itemType = 0;
		this.route = route;
	}

	public MainVo(MainProductVo product)
	{
		this.itemType = 2;
		this.product = product;
	}

	public MainVo(CommunityListVo community)
	{
		this.itemType = 1;
		this.community = community;
	}

	private int itemType;
	private MainRouteVo route;
	private MainProductVo product;
	private CommunityListVo community;

	public MainProductVo getProduct()
	{
		return product;
	}

	public void setProduct(MainProductVo product)
	{
		this.product = product;
	}

	public MainRouteVo getRoute()
	{
		return route;
	}

	public void setRoute(MainRouteVo route)
	{
		this.route = route;
	}

	public CommunityListVo getCommunity()
	{
		return community;
	}

	public void setCommunity(CommunityListVo community)
	{
		this.community = community;
	}

	public void setItemType(int itemType)
	{
		this.itemType = itemType;
	}

	@Override public int getItemType()
	{
		return itemType;
	}
}
